package com.yanmaohu.yulia.bean;

/**
 * @author Bright Lee
 */
public final class FromClause {

    private int beginIndex;
    private int endIndex;
    private TableReferenceList tableReferenceList;

    public FromClause(int beginIndex, TableReferenceList tableReferenceList) {
        this.beginIndex = beginIndex;
        this.endIndex = tableReferenceList.get(tableReferenceList.size() - 1).getEndIndex();
        this.tableReferenceList = tableReferenceList;
    }

    public int getBeginIndex() {
        return beginIndex;
    }

    public int getEndIndex() {
        return endIndex;
    }

    public TableReferenceList getTableReferenceList() {
        return tableReferenceList;
    }

}
